package com.example.demo.behavior.observer;

import lombok.Data;

import java.util.Observable;
import java.util.Observer;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/24
 * @Version V1.0
 */
@Data
public class ZhangSan implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        System.out.println("张三看到" + arg + "更新了！");
    }
}
